package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.BpmnInfo;
import cn.wolfcode.car.business.query.BpmnInfoQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * 杨修记录接口
 */
public interface IBpmnInfoService {


    /**
     * 查单个
     * @param id
     * @return
     */
    BpmnInfo get(Long id);


    /**
     * 保存
     * @param BpmnInfo
     */
    void save(BpmnInfo BpmnInfo);

  
    /**
     * 更新
     * @param BpmnInfo
     */
    void update(BpmnInfo BpmnInfo);

    /**
     *  批量删除
     * @param ids
     */
    void deleteBatch(String ids);
    List<BpmnInfo> list();
    TablePageInfo<BpmnInfo>query(BpmnInfoQuery qo);

    void deploy(MultipartFile multipartFile, String bpmnType, String bpmnLabel, String info) throws IOException;

    void delete(Long ids);

    InputStream readResource(Long id, String type);

    BpmnInfo getByBpmnType(String auditType);
}
